package com.hxd.mall.injector.modules

import com.hxd.mall.injector.scope.ActivityScope
import com.hxd.mall.module.IMainPresenter
import com.hxd.mall.module.IMainView
import com.hxd.mall.module.MainActivity
import com.hxd.mall.module.MainPresenter
import dagger.Binds
import dagger.Module

/**
 * Created by qishuai on 2018/7/30.
 */
@Module
abstract class MainModule {

    @Binds
    internal abstract fun bindView(activity: MainActivity): IMainView

    @ActivityScope
    @Binds
    abstract fun provideMainPresenter(presenter: MainPresenter): IMainPresenter
}